#include <iostream>
#include "manager.h"

using namespace std;


	Manager::Manager(){}
	Manager::Manager(const int _id,const char* _name,const char* _password)
	{
		id = _id;
		strcpy(name,_name);
		strcpy(password,_password);
	}
	Manager::Manager(const Manager& that)
	{	
		id =that.id;
		strcpy(name,that.name);
		strcpy(password,that.password);
	}

	Manager& Manager:: operator = (const Manager& that)
	{
		if(this != &that)
		{
			Manager temp(that);
			strcpy(name,that.name);
			strcpy(password,that.password);
			id =that.id;
		}
		return *this;
	}
	int Manager::get_manager_id()
	{
		return id;
	}
	char* Manager::get_manager_name()
	{
		return name;
	}
	char* Manager::get_manager_password()
	{
		return password;
	}
	void Manager::get_manager_id_name()
	{
		cout << id << name << endl;
	}
	void Manager::change_name(char* str)
	{
		strcpy(name,str);
	}
	void Manager::change_id(int num)
	{
		id = num;
	}
	void Manager::change_password(char* str)
	{
		strcpy(password,str);
	}
	Manager::~Manager(){}
